//! Copyright 2012 NTH Technology, Inc.
//! All rights reserved
//!
#ifndef __Capture_h__
#define __Capture_h__

#include "BasicTypes.h"


extern "C" {
    extern void TIM3_IRQHandler(void);
}

class cCapture
{
public:
    static void InitReset();
    static void PushCaptureValue( U16 iValue );
    static bool PopCaptureValue( U16 &iValue );
    static U16  GetCaptureValueCount();
    static void RunOne();

private:
    static U16 m_Count;
    static U16 m_Head;
    static U16 m_Tail;
    static U16 m_CaptureValue[];
};

#endif // __Capture_h__
